package com.taoym.voucher.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taoym.voucher.admin.domain.XcxUserInfo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @coder taoym
 * @datetime 2021/8/27 17:04
 * @desc
 */
public interface XcxUserInfoMapper extends BaseMapper<XcxUserInfo> {
    /**
     * @coder taoym
     * @datetime 2021/7/1 10:25
     * @desc 查询用户信息
     */
    List<XcxUserInfo> getUserInfoList(@Param("page") Integer page,
                                      @Param("size") Integer size,
                                      @Param("start") LocalDateTime start,
                                      @Param("end") LocalDateTime end);

    /**
     * @coder taoym
     * @datetime 2021/7/2 9:56
     * @desc 查询总记录数
     */
    Integer getCount(@Param("start") LocalDateTime start,
                     @Param("end") LocalDateTime end);

    /**
     * @coder taoym
     * @datetime 2021/7/17 17:53
     * @desc 查询用户openId
     */
    String getOpenId(@Param("uid") String uid);
}
